function create_edit_form(url_read, url_write, domain_used, biov_domain, companyInfo, name){

    var topic_domain = biov_domain+'science_or_technology_company';
    var topic_type = biov_domain+'science_or_technology_company';
    
    // Topic info:
    var topic_id = companyInfo.id;
                
    // Overview text
    createBlurbElement(domain_used, name, topic_domain, topic_id, 500, "edit_overview")

    // Date founded        
    var founded_options = {topicName: name,
        currentVal: companyInfo.founded,
        property: '/business/company/founded',
        propertyType: '/type/datetime',
        topic_id: topic_id,
        useSuggest: false
    };      
    //singleElement("span_founded", founded_options);
    
    // Company Type
    var companyType_options = {topicName: name,
        currentVal: companyInfo.companyType,
        property: '/business/company/company_type',
        propertyType: '/business/company_type',
        topic_id: topic_id,
        useSuggest: true
    };  
    //singleElement("span_companyType", companyType_options);
    
    // Industries
    var industry_options = {
        url_read: url_read,
        current_vals_q: '{"query":[{'+
                '"/business/company/industry":[{"*":null,"optional":true}],'+
                '"type":"/business/company",'+              
                '"id" : "'+topic_id+'"'+
                '}]}',      
        topic_name: name,
        current_vals: companyInfo.industries,
        property: '/business/company/industry',
        property_type: ['/business/industry'],
        topic_type : topic_type,
        topic_id: topic_id
    };      
    //multiElement("span_industry", industry_options, domain_used);

    // Medical Focuses
    var medicalfocus_options = {
        url_read: url_read,
        current_vals_q: '{"query":[{'+
                '"'+biov_domain+'science_or_technology_company/develops_treatments_for_disease":[{"*":null,"optional":true}],'+
                '"type":"/business/company",'+              
                '"id" : "'+topic_id+'"'+
                '}]}',
        topic_name: name,
        current_vals: companyInfo.diseases,
        property: biov_domain+'science_or_technology_company/develops_treatments_for_disease',
        property_type: [biov_domain+'bv_medical_condition'],
        topic_type : topic_type,
        topic_id: topic_id
    };      
    multiElement("span_develops_treatments_for_disease", medicalfocus_options, domain_used);

    // Technology area of expertise
    var technologies_options = {
        url_read: url_read,
        current_vals_q: '{"query":[{'+
                '"'+biov_domain+'science_or_technology_company/area_of_expertise":[{"*":null,"optional":true}],'+
                '"type":"/business/company",'+              
                '"id" : "'+topic_id+'"'+
                '}]}',      
        topic_name: name,
        current_vals: companyInfo.technologies,
        property: biov_domain+'science_or_technology_company/area_of_expertise',
        property_type: [biov_domain+'technology_class'],
        topic_type : topic_type,
        topic_id: topic_id
    };      
    multiElement("span_technologies", technologies_options, domain_used);

    // Products
    var product_options = {
        url_read: url_read,
        current_vals_q: '{"query":[{'+
                '"'+biov_domain+'science_or_technology_company/products":[{' +
                    '"*":null,' +
                    '"optional":true, ' +
                    '"sales":[{"*":null,"optional":true}],' +
                    '"developed_by":[{"name":null,"id":null}]' +
                    '}],'+
                '"type":"/business/company",'+              
                '"id" : "'+topic_id+'"'+
                '}]}',      
        topic_name: name,
        current_vals: companyInfo.products,
        property: biov_domain+'science_or_technology_company/products',
        property_type : [biov_domain+'product'],
        topic_type : topic_type,
        topic_id: topic_id
    };      
    multiElement("span_products", product_options, domain_used);

    createDrugPipeline("span_therapeutic_pipeline", biov_domain, name, topic_type, topic_id, companyInfo.therapeutics);
/*
    var element_structure = {
        topic1_type : '["'+biov_domain+'product","'+biov_domain+'bv_therapeutic"]',
        topic1_html_property_name : 'Therapeutic',
        button_add_string : 'Add New Therapeutic',
        parent_property : biov_domain+'science_or_technology_company/products',
        topic2 : [
            {
                type : '["'+biov_domain+'indication"]',
                topic1_property : biov_domain+'bv_therapeutic/indication_or_disease',       
                element_type : 'compound',
                button_add_string : 'Add Indication',
                elements : [
                    {
                        topic1_property : 'therapeutic',
                        topic1_property_full : biov_domain+'indication/therapeutic',
                        type : '["'+biov_domain + 'bv_therapeutic"]',
                        is_topic1 : true,
                        html_property_name : ''             
                    },
                    {
                        topic1_property : 'disease',
                        topic1_property_full : biov_domain+'indication/disease',
                        type : '["'+biov_domain + 'bv_medical_condition"]',
                        is_topic1 : false,
                        html_property_name : 'Medical Condition'
                    },
                    {
                        topic1_property : 'phase_of_development',
                        topic1_property_full : biov_domain+'indication/phase_of_development',
                        type : '["'+biov_domain + 'bv_phase_of_development"]',
                        is_topic1 : false,
                        html_property_name : 'Phase of Development'
                    }
                ]
            }
        ]
    }
    var therapeutic_pipeline_current_vals = companyInfo.therapeutics;//createTherapeuticPipelineCurrentVals(companyInfo.therapeutics);
    var therapeutic_pipeline_options = {
        edit_blurb : "drug pipeline",       
        topic_name: name,
        current_vals: therapeutic_pipeline_current_vals,
        topic_type : topic_type,
        topic_id: topic_id,
        element_structure : element_structure
    };      
    mixedElement("span_therapeutic_pipeline", therapeutic_pipeline_options);
*/
    
    // Webpage
    createWebPage_edit("span_webpages", name, topic_type, topic_id, companyInfo.webpages, domain_used, url_read)

    // Headquarters address
    createHeadquarters_edit("span_headquarters", name, topic_type, topic_id, companyInfo.headquarters, domain_used, url_read);
    /*
    var propertyNames = ["street_address","citytown","state_province_region","postal_code"];
    var useSuggest = [false, true, true, true];
    var propertyTypes = ["/type/text","/location/citytown","/location/administrative_division","/location/postal_code"];
    var compoundPropertyType = "/location/mailing_address";
    var compoundProperty = "/business/company/headquarters";
    var hq_options = {
        topicName: name,
        currentVals: companyInfo.headquarters,
        propertyNames: propertyNames,
        propertyTypes: propertyTypes,
        type: topic_type,
        topic_id: topic_id,
        compoundPropertyType: compoundPropertyType,
        compoundProperty: compoundProperty,
        useSuggest: useSuggest
    };      
    compoundElement("span_headquarters",hq_options)
    */
    // Investors 
    var propertyNames = ["investment_round","amount_raised","currency","date","investors","web_reference"];
    var useSuggest = [true, false, true, false, true, false];
    var propertyTypes = ["/venture_capital/investment_round","/type/float","/finance/currency","/type/datetime","/base/bioventurist/bv_venture_investor","/type/uri"];
    var compoundPropertyType = "/base/bioventurist/bv_investment_round";
    var compoundProperty = "/base/bioventurist/science_or_technology_company/investment_round";
    var investment_options = {
        topicName: name,
        currentVals: companyInfo.investments,
        propertyNames: propertyNames,
        propertyTypes: propertyTypes,
        type: topic_type,
        topic_id: topic_id,
        compoundPropertyType: compoundPropertyType,
        compoundProperty: compoundProperty,
        useSuggest: useSuggest
    };      
    //compoundElement("span_investment_round",investment_options)

    // Edit-page redirect:
    createFreebaseRedirect(companyInfo.guid, 'freebase_redirect');                          
}

/**
 * creates the object of current vals that is used to create the therapeutic_pipeline_current_element
 * @return a therapeutic_pipeline object of the following structure 
 *  (NOTE THAT PROPER ORDERING OF THE COMPOUND ELEMENTS IS NECESSARY!!!) 
 * 
 *      var element_structure = {
 *      //topic1_type : [biov_domain+'product', biov_domain+'bv_therapeutic'],
 *      //topic1_property : 'indication_or_disease',
 *      //topic1_html_property_name : 'Therapeutic',
 *      topic2 : [
 *          {
 *              type : ['indication'],
 *              is_compound : true,
 *              compound_elements : [
 *                  {
 *                      property : 'therapeutic',
 *                      type : [biov_domain + 'bv_therapeutic'],
 *                      is_topic1 : true,
 *                      html_property_name : ''             
 *                  },
 *                  {
 *                      property : 'disease',
 *                      type : [biov_domain + 'bv_medical_condition'],
 *                      is_topic1 : false,
 *                      html_property_name : 'Medical Condition'
 *                  },
 *                  {
 *                      property : 'phase_of_development',
 *                      type : [biov_domain + 'bv_phase_of_development'],
 *                      is_topic1 : false,
 *                      html_property_name : 'Phase of Development'
 *                  }
 *              ]
 *          }
 *      ]
 *  }
 * 
 */
function createTherapeuticPipelineCurrentVals(vals){
    var topic2 = new Array();
    for(var i=0;i<vals.length; i++){
        var therapeutic = vals[i];
        topic2[i] = new Object();
        topic2[i]['compound_elements'] = Array();
        topic2[i]['compound_elements'][0] = 1;
        //HERE
        
    }
}
